package com.jf.threadlocal;

/**
 * Created with IntelliJ IDEA
 * Description:
 * User:22954
 * Date:2024-09-20
 * Time:15:07
 */
public class TestService {
    public void show() {
        String threadName = Thread.currentThread().getName();
        System.out.println("Current thread name: " + threadName);
        System.out.println(threadName + " ----" + ThreadLocal_.threadLocal1.get());
        System.out.println(threadName + " ----" + ThreadLocal_.threadLocal2.get());
        System.out.println("==================================");
        new TestDao().show();
    }
}
